Skip to content

public static Utils\CondorcetUtil::format

Read it at the source

Description

php
public static Utils\CondorcetUtil::format ( mixed $input [, bool $convertObject = true] ): mixed

Provides pretty re-formatting, human readable, of all Condorcet PHP objects or result sets. Can be used before a var_dump, or just to get simpler data output.

Parameters

input: mixed

Input to convert.

convertObject: bool

If true. Will convert Candidate objects into string representation of their name.

Return value

(mixed) New formatted data.

Released under the MIT License.